<html xmlns="http://www.w3.org/1999/xhtml"  
     xmlns:h="http://java.sun.com/jsf/html"      
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:sec="http://www.springframework.org/security/tags"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui">  

	<ui:composition template="mainLayout.xhtml">
		<ui:define name="header">
			<h1>#{msg.header}</h1>
		    <h2>#{msg.subheaderuser}</h2>
		</ui:define>
		
		<ui:define name="leftToolbar">
			<h2>#{msg.options}</h2>
			<h:form>
				<p:menu>  
			        <p:submenu label="#{msg.users}">  
				        <sec:authorize access="hasRole('ROLE_ADMIN')">
				            <p:menuitem value="#{msg.adduser}" url="/pages/user/addUser.xhtml" icon="ui-icon-extlink" />  
				            <p:menuitem value="#{msg.searchuser}" url="/pages/user/searchUser.xhtml" icon="ui-icon-extlink"/>  
						</sec:authorize>
					
			            <p:menuitem value="#{msg.changePassword}" url="/pages/user/changePassword.xhtml" icon="ui-icon-extlink"/>
			            <p:menuitem value="#{msg.configuration}" url="/pages/user/changeTheme.xhtml" icon="ui-icon-extlink"/>  
			        </p:submenu>  
			    </p:menu>
		    </h:form>
		</ui:define>
	</ui:composition>
</html> 
